package BLL;

import DAL.AcademicDAL;
import Entities.TblAcademic;
import java.util.List;

public class AcademicBLL {

    public AcademicDAL dalObj;

    public boolean add(TblAcademic obj) throws Exception {
        dalObj = new AcademicDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblAcademic obj) throws Exception {
        dalObj = new AcademicDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblAcademic obj) throws Exception {
        dalObj = new AcademicDAL();
        return dalObj.delete(obj);
    }

    public TblAcademic getById(int id) throws Exception {
        dalObj = new AcademicDAL();
        return dalObj.getById(id);
    }

    public List<TblAcademic> getAll() throws Exception {
        dalObj = new AcademicDAL();
        return dalObj.getAll();
    }
}
